package com.yonyou.wdt.qimenmodel.qimencloud.api.scenehu3cgwt0tc.request;

import com.yonyou.wdt.qimenmodel.qimencloud.api.scenehu3cgwt0tc.response.WdtStockInDtlQueryResponse;
import com.yonyou.wdt.qimenmodel.taobao.api.ApiRuleException;
import com.yonyou.wdt.qimenmodel.taobao.api.BaseTaobaoRequest;
import com.yonyou.wdt.qimenmodel.taobao.api.Constants;
import com.yonyou.wdt.qimenmodel.taobao.api.internal.util.RequestCheckUtils;
import com.yonyou.wdt.qimenmodel.taobao.api.internal.util.TaobaoHashMap;

import java.util.Map;

/**
 *
 * @author top auto create
 * @since 1.0, 2018.08.20
 */
public class WdtStockInDtlQueryRequest extends BaseTaobaoRequest<WdtStockInDtlQueryResponse> {
     
     

	/** 
	* 秘钥
	 */
	private String appkey;

	/** 
	* 结束日期
	 */
	private String endTime;

	/** 
	* 页号,默认0，从0页开始。
	 */
	private Long pageNo;

	/** 
	* 分页大小（最大不超过30条，默认返回30条）
	 */
	private Long pageSize;

	/** 
	* 卖家账号
	 */
	private String sid;

	/** 
	* 开始日期
	 */
	private String startTime;

	/** 
	* 状态，55已审核,5,已取消 (此参数查询时间为最后更新时间)，不传此参数默认按出库时间查询，已发货已完成单据。
	 */
	private Long status;

	/** 
	* 仓库编号
	 */
	private String warehouseNo;
	
	/**
	 * 系统订单号
	 */
	private String srcOrderNo;
	
	/**
	 * 原始单号
	 */
	private String srcTid;
	/**
	 * 时间查询条件
	 */
	private Integer isByModified;
	
	/**
	 * 出库单号
	 */
	private String stockinNo;
	/**
	 * 店铺编号
	 */
	private String shopNo;
	/**
	 * 店铺编号（批量）
	 */
	private String shopNos;
	/**
	 * 货位节点校验
	 */
	private Integer isNoPosition;

	public Integer getIsNoPosition() {
		return isNoPosition;
	}

	public void setIsNoPosition(Integer isNoPosition) {
		this.isNoPosition = isNoPosition;
	}

	public String getShopNo() {
		return shopNo;
	}

	public void setShopNo(String shopNo) {
		this.shopNo = shopNo;
	}

	public String getShopNos() {
		return shopNos;
	}

	public void setShopNos(String shopNos) {
		this.shopNos = shopNos;
	}

	public Integer getIsByModified() {
		return isByModified;
	}

	public void setIsByModified(Integer isByModified) {
		this.isByModified = isByModified;
	}

	public void setAppkey(String appkey) {
		this.appkey = appkey;
	}

	public String getAppkey() {
		return this.appkey;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getEndTime() {
		return this.endTime;
	}

	public void setPageNo(Long pageNo) {
		this.pageNo = pageNo;
	}

	public Long getPageNo() {
		return this.pageNo;
	}

	public void setPageSize(Long pageSize) {
		this.pageSize = pageSize;
	}

	public Long getPageSize() {
		return this.pageSize;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	public String getSid() {
		return this.sid;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getStartTime() {
		return this.startTime;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

	public Long getStatus() {
		return this.status;
	}

	public void setWarehouseNo(String warehouseNo) {
		this.warehouseNo = warehouseNo;
	}

	public String getWarehouseNo() {
		return this.warehouseNo;
	}

     public String getApiMethodName() {
        return "wdt.stockin.batch.detail";
     }

     private String topContentType ;

     public String getTopContentType() {
        return topContentType;
     }

     public void setTopContentType(String topContentType) {
         this.topContentType = topContentType;
     }

     private String topResponseType = Constants.RESPONSE_TYPE_QIMEN;

     public String getTopResponseType() {
        return topResponseType;
     }

     public void setTopResponseType(String topResponseType) {
        this.topResponseType = topResponseType;
     }

    private String topApiVersion = "2.0";

     public String getTopApiVersion() {
        return this.topApiVersion;
     }

     public void setTopApiVersion(String topApiVersion) {
        this.topApiVersion = topApiVersion;
     }

     private String topApiFormat ;

     public String getTopApiFormat() {
     	return this.topApiFormat;
     }

     public void setTopApiFormat(String topApiFormat) {
     	this.topApiFormat = topApiFormat;
     }
     
     public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("appkey", this.appkey);
		txtParams.put("start_time", this.startTime);
		txtParams.put("end_time", this.endTime);
		txtParams.put("page_size", this.pageSize);
		txtParams.put("sid", this.sid);
		txtParams.put("page_no", this.pageNo);
		txtParams.put("src_order_no", this.srcOrderNo);
		txtParams.put("stockin_no", this.stockinNo);

		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}
     
     public Class<WdtStockInDtlQueryResponse> getResponseClass() {
		return WdtStockInDtlQueryResponse.class;
	}

     public void check() throws ApiRuleException {
		//RequestCheckUtils.checkNotEmpty(endTime, "endTime");
		RequestCheckUtils.checkNotEmpty(sid, "sid");
		//RequestCheckUtils.checkNotEmpty(startTime, "startTime");
     }

	public String getSrcOrderNo() {
		return srcOrderNo;
	}

	public void setSrcOrderNo(String srcOrderNo) {
		this.srcOrderNo = srcOrderNo;
	}

	public String getSrcTid() {
		return srcTid;
	}

	public void setSrcTid(String srcTid) {
		this.srcTid = srcTid;
	}

	public String getStockinNo() {
		return stockinNo;
	}

	public void setStockinNo(String stockinNo) {
		this.stockinNo = stockinNo;
	}
     


}